// run: $exec < input
#include <iostream>
#include <string>
#include <vector>

long long t, s, x;

int main()
{
	std::ios::sync_with_stdio(false);
	std::cin >> t >> s >> x;
	if (x < t) { std::cout << "NO\n"; return 0; }
	if (x == t + 1) std::cout << "NO\n";
	else if ((x - t) % s == 0 || (x - t) % s == 1)
		std::cout << "YES\n";
	else
		std::cout << "NO\n";
}

